package com.x.erp.rpc;

import com.x.erp.model.Manufacturer;
import com.x.erp.model.Relation;
import com.x.framework.rpc.BaseRpcService;

import java.util.List;
import java.util.Map;

public interface ManufacturerRpcService extends BaseRpcService {
    /**
     * 说明:车商列表查询
     * @author lhl
     * @param manufacturer
     * @return
     */
    public List<Manufacturer> selectManufacturer(Manufacturer manufacturer);

    /**
     * 添加
     */
    public void insertManufacturerList(Manufacturer manufacturer) ;

    /**
     * 修改
     */
    public void updateManufacturerList(Manufacturer manufacturer) ;

    /**
     * 删除中间表
     */
    public void delBrandManufacturer(Integer brandId, Integer manufacturerId) ;

    /**
     * 插入中间表
     */
    public void insertBrandManufacturer(Integer brandId, Integer manufacturerId);

    /**
     * 按照manufacturer id 查询
     */
    public Manufacturer getSimpleManufacturer(Map<String, Object> manufacturer);

    /**
     * relation id 查询
     */
    public List<Relation> getRelationList(Map<String, Object> relation);
}
